package com.team5101.web.controller.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

@Configuration
public class WebConfig {

    /**
     * 配置图片上传是图片的最大大小
     * @return
     */
    @Bean
    public CommonsMultipartResolver getBean(){
        CommonsMultipartResolver bean = new CommonsMultipartResolver();
        bean.setMaxUploadSize(10485760);
        return bean;
    }




}
